<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="app">
    <parent-component></parent-component>
</div>
</body>
<script src="../js/vue.1.0.24.js"></script>
<script>
    var Child = Vue.extend({
        template: '<p>This is a child component!</p>'
    })

    var Parent = Vue.extend({
        template :'<p>This is a Parent component</p><child-component></child-component>',
        components : {
            'child-component' : Child
        }
    })

    Vue.component('parent-component',Parent);

    new Vue({
        el:'#app'
    })
</script>
</html>